package nc.pu.pub.rest.filter;

import uap.ws.rest.core.UAPRestJaxRsApplication;

import javax.ws.rs.ApplicationPath;
import java.util.HashSet;
import java.util.Set;

@ApplicationPath("/uapws/rest")
public class MyJaxRsApplication extends UAPRestJaxRsApplication {

    public Set<Object> getSingletons() {
        Set<Object> singletons = new HashSet<>();
        singletons.add(new CustomRequestInterceptor());
        singletons.add(new CustomResponseInterceptor());
        return singletons;
    }
}